package com.zahb.qadx.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Zdw on 2020/10/16 17:20
 * 课程分类
 */
public class Category {

    private int id;
    private String name;
    private int parentId;
    private int level;
    private int rootOrgId;
    private int isDelete;
    private int creator;
    private String createTime;
    private int updator;
    private String updateTime;
    private int isUnused;
    private int cateType;
    private List<Category> childList;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getRootOrgId() {
        return rootOrgId;
    }

    public void setRootOrgId(int rootOrgId) {
        this.rootOrgId = rootOrgId;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public int getCreator() {
        return creator;
    }

    public void setCreator(int creator) {
        this.creator = creator;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getUpdator() {
        return updator;
    }

    public void setUpdator(int updator) {
        this.updator = updator;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public int getIsUnused() {
        return isUnused;
    }

    public void setIsUnused(int isUnused) {
        this.isUnused = isUnused;
    }

    public int getCateType() {
        return cateType;
    }

    public void setCateType(int cateType) {
        this.cateType = cateType;
    }

    public List<Category> getChildList() {
        if (childList == null)
            childList = new ArrayList<>();
        return childList;
    }

    public void setChildList(List<Category> childList) {
        this.childList = childList;
    }
}
